package com.jjyu.service.impl;

import com.jjyu.dao.FeedbackMapper;
import com.jjyu.entity.Feedback;
import com.jjyu.service.FeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FeedbackServiceImpl implements FeedbackService {

    @Autowired
    private FeedbackMapper feedbackMapper;

    @Override
    public Feedback submitFeedback(Feedback feedback) {
        // 在这里你可以添加一些业务逻辑，比如验证输入等
        feedbackMapper.insert(feedback);
        return feedback;
    }
}
